<div class="content">
	<div class="ibox">
        <div class="ibox-title">
            <h5>科目列表</h5>
            <div ibox-tools>
                <div class="ibox-tools dropdown">
                    <button type="button" class="btn btn-sm btn-primary pull-right m-t-n-xs" ui-sref="dashboard.race.course">新增</button>
                </div>
            </div>
        </div>
        <div class="ibox-content">

            <table class="table table-striped table-bordered table-hover" ng-if="vm.courselist.length>0">
                <thead>
                    <tr>
                        <th class="text-center">科目名称</th>
                        <th class="text-center">参赛人数</th>
                        <th class="text-center">发枪时间</th>
                        <th class="text-center">关联计时点</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="course in vm.courselist" ui-sref="dashboard.race.courseedit({course_id: course.course_id})">
                        <td class="text-center">{{course.course_name}}</td>
                        <td class="text-center">{{course.reg_num}}</td>
                        <td class="text-center">{{course.gun_time}}</td>
                        <td class="text-center">
                            <span ng-repeat="cp in course.cp_calc">{{cp.cp_name}} </span>
                        </td>
                    </tr>
                </tbody>
            </table>
            <p class="text-center" ng-if="vm.courselist.length==0">
                暂无科目。
            </p>
        </div>
    </div>
</div>